using System;

[Serializable]
public class SingleCurrencyPrice
{
	public CurrencyType currency;

	public int cost;

	public bool isFree
	{
		get
		{
			return cost <= 0;
		}
	}

	public bool isPlayerAbleToBuy
	{
		get
		{
			return GGPlayerSettings.instance.walletManager.CanBuyItemWithPrice(this);
		}
	}

	public SingleCurrencyPrice(int cost, CurrencyType currency)
	{
		this.cost = cost;
		this.currency = currency;
	}

	public SingleCurrencyPrice()
	{
	}

	public string ToPriceString()
	{
		return cost + " (" + currency.ToString() + ")";
	}
}
